package bean;

import java.util.ArrayList;

public class S_Class { 
	private String cla_id;
	private String cla_name;
	private int cla_num;
	private String g_id;
	private double ave_sco = 0;
	private double sum_sco = 0;
	private double passrate = 0;
	private double goodrate = 0;
	ArrayList<Double> ave_sco_all = new ArrayList<Double>();
	public ArrayList<Double> getAve_sco_all() {
		return ave_sco_all;
	}
	public void setAve_sco_all(int n) {
		this.ave_sco = this.sum_sco/n;
		this.ave_sco_all.add(this.ave_sco);
		this.sum_sco = 0;
		this.ave_sco = 0;
	}
	public double getAve_sco() {
		return ave_sco;
	}
	public void setAve_sco(int n) {
		this.ave_sco = this.sum_sco/n;
	}
	public double getSum_sco() {
		return sum_sco;
	}
	public void setSum_sco(double sum_sco) {
		this.sum_sco = sum_sco + this.sum_sco;
	}
	public double getPassrate() {
		return passrate;
	}
	public void setPassrate(int pass , int sum) {
		this.passrate = pass*100/sum;
	}
	public double getGoodrate() {
		return goodrate;
	}
	public void setGoodrate(int good , int sum) {
		this.goodrate = good*100/sum;
	}
	public String getCla_id() {
		return cla_id;
	}
	public void setCla_id(String cla_id) {
		this.cla_id = cla_id;
	}
	public String getCla_name() {
		return cla_name;
	}
	public void setCla_name(String cla_name) {
		this.cla_name = cla_name;
	}
	public int getCla_num() {
		return cla_num;
	}
	public void setCla_num(int cla_num) {
		this.cla_num = cla_num;
	}
	public String getG_id() {
		return g_id;
	}
	public void setG_id(String g_id) {
		this.g_id = g_id;
	}

}
